#ifndef SETLOGINACCOUNTWINDOW_H
#define SETLOGINACCOUNTWINDOW_H

#include <QDialog>

namespace Ui {
class SetLoginAccountWindow;
}

class SetLoginAccountWindow : public QDialog {
    Q_OBJECT

   public:
    // automatically load the data in the mysqlapi
    explicit SetLoginAccountWindow(QWidget *parent = nullptr);
    // if host, user or password is "", set the default value, And store the account infomation to file
    ~SetLoginAccountWindow();

   private slots:
    // set host, user, password from the ui text, then call on_cancel_clicked
    void on_OK_clicked();

   private:
    Ui::SetLoginAccountWindow *ui;
};

#endif  // SETLOGINACCOUNTWINDOW_H
